﻿@model EmgrMvc.Models.TestInfo

@{
    ViewData["Title"] = "Test";
}

<h2>Test</h2>

<h4>TestInfo</h4>
<hr />
<div class="row">
    <div class="col-md-4">
        <form asp-action="Test">
            <div asp-validation-summary="ModelOnly" class="text-danger"></div>
            <div class="form-group">
                <label asp-for="Topic" class="control-label"></label>
                <input asp-for="Topic" class="form-control" />
                <span asp-validation-for="Topic" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Data" class="control-label">Mac Or Filename</label>
                <input asp-for="Data" class="form-control" />
                <span asp-validation-for="Data" class="text-danger"></span>
            </div>
            <button type="submit" name="Action" value="ACPowerOn">打开空调</button>
            <button type="submit" name="Action" value="ACPowerOff">关闭空调</button>
            <button type="submit" name="Action" value="WakeupPC">远程唤醒</button>
        </form>
    </div>
</div>

<div>
    <a asp-action="Index">Back to List</a>
</div>

